package com.ayguigu.order.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * OrderConfig
 *
 * @author Mars
 * @date 2025/3/14
 */
@Configuration
public class OrderConfig {

    @LoadBalanced // 注解式负载均衡
    @Bean
    RestTemplate restTemplate (){
        return new RestTemplate();
    }

}